<?php

namespace App\Http\Controllers;

use App\Http\Controllers\Controller;
use hg\apidoc\annotation as Apidoc;
use App\Http\Models\BannerApiModel;

/**
 * 标题也可以这样直接写
 * @Apidoc\Title("轮播图管理")
 * @Apidoc\Group("base")
 * @Apidoc\Sort(1)
 */
class BannerApiController extends Controller
{
    /**
     * @Apidoc\Title("轮播图列表")
     * @Apidoc\Author("HG")
     * @Apidoc\Tag("轮播图,列表")
     * @Apidoc\Url ("api/banner/index")
     * @Apidoc\Method ("GET")
     * @Apidoc\Returned("id", type="int", desc="id")
     * @Apidoc\Returned("img", type="string", desc="图片")
     */
    public function index()
    {
        return BannerApiModel::status()->get();
    }
}
